package com.zd.dao;

import com.zd.entity.Comments;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface CommentsDao extends CrudRepository<Comments,Long> {

    List<Comments> getAllByCnidOrderByCdateDesc(Long cnid);
    //删除指定新闻的评论
    void deleteByCnid(Long nid);

}
